package com.example.everying.model.entity.content;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @program: everything
 * @description: 审核记录
 * @author: zw
 * @create: 2025-05-17 10:26
 **/
@Data
@TableName("activity_audit")
public class ActivityAudit implements Serializable {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "主键")
    @NotNull(message = "发表内容id不能为空")
    private String id;

    @NotNull(message = "发布人id不能为空")
    @ApiModelProperty(value = "发布人id")
    private String requestedBy;

    @NotNull(message = "文章id不能为空")
    @ApiModelProperty(value = "文章id")
    private String articleId;

    @ApiModelProperty(value = "审核人id")
    private String adminReviewed;

    @ApiModelProperty(value = "审核结果：0：待审核；1：通过；2：拒绝")
    private int status;

    @ApiModelProperty(value = "审核原因")
    private String reason;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "修改人")
    private String updater;
}
